﻿namespace Deppton.Mobile
{
    using Deppton.Mobile.Services;

    public class StaticServicesPortfolio : IServicesPortfolio
    {
        private static ICredentialsService credentialsService = new CredentialsService();
        private static ISynchronizationService synchronizationService = new SynchronizationService(new StaticServicesPortfolio());
        private static IUserProfileService userProfileService = new UserProfileService();
        private static ISurveyDefinitionStorageService surveyDefinitionStorageService = new SurveyDefinitionStorageService();
        private static ISurveysStorageService surveysStorageService = new SurveysStorageService();

        public ICredentialsService CredentialsService
        {
            get
            {
                return credentialsService;
            }
        }

        public ISynchronizationService SynchronizationService
        {
            get
            {
                return synchronizationService;
            }
        }

        public IUserProfileService UserProfileService
        {
            get
            {
                return userProfileService;
            }
        }

        public ISurveyDefinitionStorageService SurveyDefinitionsStorageService
        {
            get
            {
                return surveyDefinitionStorageService;
            }
        }

        public ISurveysStorageService SurveysStorageService
        {
            get
            {
                return surveysStorageService;
            }
        }
    }
}
